﻿using JESAI.HttpRequestMonitor.Core.Abstracts;

namespace JESAI.HttpRequestMonitor.Core
{
    public class DirectlyReportsTransport : IRequestMonitorTransport
    {
        public IRequestMonitorStorage Storage { get; }

        public DirectlyReportsTransport(IRequestMonitorStorage storage)
        {
            Storage = storage;
        }

        public void Send(IRequestModel requestModel, IRequestDetailModel requestDetailModel)
        {
            Storage.AddRequestInfoAsync(requestModel, requestDetailModel).ConfigureAwait(false);
        }
    }
}